home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
christmas_snow_world_decoration.swf
/
scripts
/
frame_1
/
DoAction.as
< prev
Wrap
Text File
|
2011-01-13
|
2KB
|
78 lines
function check_waste()
{
temp_check1 = waste.hitTest(_xmouse,_ymouse);
temp_check2 = waste.hitTest(_root.now_obj);
if(temp_check1 && temp_check2)
{
waste.gotoAndStop(2);
waste._alpha = 70;
delete_obj = true;
}
else
{
waste.gotoAndStop(1);
waste._alpha = 100;
delete_obj = false;
}
}
function reset()
{
i = 1;
cnt = 1;
do
{
obj1 = eval("temp" + i);
obj2 = eval("mask" + i);
removeMovieClip(obj1);
removeMovieClip(obj2);
i++;
}
while(i < 19999);
}
stop();
getUrl("FSCommand:allowscale", "false");
stop();
cnt = 1;
now_obj = null;
delete_obj = false;
interval_obj = setInterval(check_waste,100,Drag.obj);
_global.Duplicate = function(name)
{
cnt++;
name.duplicateMovieClip("temp" + cnt,cnt);
mask.duplicateMovieClip("mask" + cnt,cnt + 50000);
temp_object = eval("temp" + cnt);
temp_mask = eval("mask" + cnt);
temp_object.startDrag(true);
temp_object.gotoAndStop(2);
temp_object._alpha = 50;
return temp_object;
};
_global.StopIt = function(obj)
{
obj.stopDrag();
obj._alpha = 100;
begin_len = 4;
total_len = obj._name.length;
tail_string = obj._name.substring(begin_len,total_len);
mask_obj = eval("mask" + tail_string);
del_condition = hitZone.hitTest(_xmouse,_ymouse,true);
if(del_condition || delete_obj)
{
removeMovieClip(obj);
removeMovieClip(mask_obj);
}
else
{
obj.setMask(mask_obj);
}
};
_global.Drag = function(obj)
{
_root.now_obj = obj;
cnt++;
obj.startDrag();
obj.swapDepths(cnt);
};